import Vue from 'vue';
import App from './App.vue';
import router from './router/router';
import store from './vuex/store';
import Handler from './handler/handler';
import { mapState } from 'vuex';
// 引入UI样式
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/reset.css'
Vue.use(ElementUI);

Vue.config.productionTip = false;
Vue.config.errorHandler = Handler.errorHandler;
Vue.config.warnHandler = Handler.warnHandler;
Vue.prototype.mapState = mapState;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
